<!--
 * @Author: 
 * @Date: 2025-07-15 16:19:27
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-07-23 17:14:28
 * @Description: file content
-->
<template>
  <view class="personal-page">
    <view class="personal-header w-full flex items-center gap-5 p-2 h-[200rpx]">
      <wd-img width="120rpx" height="120rpx" round :src="userInfoLogo" />
      <text @tap="goToLogin">登录/注册</text>
    </view>

    <wd-button @tap="logout">退出</wd-button>
    <view />
  </view>
</template>
<script lang="ts" setup>
import userInfoLogo from "@/static/logo.png";
import { useUserStore } from "@/store/index";

const { logout } = useUserStore();

// 去登陆
const goToLogin = () => uni.navigateTo({ url: "/pages/login/index" });
</script>
<style lang="scss" scoped></style>
